import { BoothColorConfig, BoothList } from "#/index";

export const getBoothColor = (
  item: BoothList,
  boothColor:BoothColorConfig
) => {
  //广告位
  if (item.type === 1) {
    item.boothType = "adbooth";
    return boothColor.adbooth;
  } else if (item.type === 0) {
    //非标准
    if (item.boothtableType === 0) {
      item.boothType = "nstdbooth";
      return boothColor.nstdbooth;
    }
    //标准
    if (item.boothtableType === 1) {
      item.boothType = "stdbooth";
      return boothColor.stdbooth;
    }
  } else {
    item.boothType = "publicbooth";
  }
};
